<div class = "main-view"><!--最外层div-->
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">H5管理</strong></div>

    <form class="am-form-inline left-margin top-margin" role="form">
        <div class="am-form-group">
            <label>名称</label> <input type="text" class="am-form-field" style="height: 30px" ng-model="name">
        </div>
        <div class="am-form-group">
            <label>描述</label> <input type="text" class="am-form-field" style="height: 30px" ng-model="desc">
        </div>
        <button type="submit" class="am-btn am-btn-primary" ng-click="search()">搜索</button>
    </form>
    <br>
    <div class="am-btn-group am-btn-group-xs left-margin top-margin">
        <button type="button" class="am-btn am-btn-default" data-am-modal="{target: '#doc-modal-add', width: 800, height: 460}"><span class="am-icon-plus"></span>添加H5</button>
        <button type="button" class="am-btn am-btn-default" ng-click="delete()"><span class="am-icon-trash-o"></span> 删除</button>
    </div>

    <div id = "pagination" class = "pagination"></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>
                    <th class="table-id">记录ID</th>
                    <th class="table-title">名称</th>
                    <th class="table-title">URL</th>
                    <th class="table-title">描述</th>
                    <th class="table-title">创建时间</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="h5 in h5List" id = "{{h5.objId}}">
                    <td class="table-check"><input type="checkbox" class = "item-check"></td>
                    <td>{{h5.objId}}</td>
                    <td>{{h5.name}}</td>
                    <td>{{h5.url}}</td>
                    <td>{{h5.desc}}</td>
                    <td>{{h5.dateCreated | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>
    <!--新增框 -->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="doc-modal-add">
        <div class="am-modal-dialog">
            <div class="am-modal-hd border-bottom" style = "text-align: left;">新增H5
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd body-area">
                <div style = "width: 90%;" class = "text-left">
                    <form>
                        <div><label style="width:50px">名称：</label><input type="text" class = "modal-input" ng-model="addData.name"></div>
                        <br>
                        <div><label  style="width:50px">URL：</label><input type="text" class = "modal-input" style = "width: 650px;display: inline-block;" ng-model="addData.url"></div>
                        <div>
                            <label>描述：</label><br />
                            <textarea style="width:700px;height:150px;" ng-model="addData.desc" required tabindex="5"></textarea>
                        </div>


                    </form>
                </div>
            </div>
            <div class = "button-area border-top">
                <button type="button" class="am-btn am-btn-success right-margin top-margin" ng-show="true" ng-click="add(addData)">保存</button>
            </div>
        </div>
    </div>
</div>